import { createApp } from 'vue';
import './style.css';
import App from './App.vue';
import { createPinia } from 'pinia';
import { mockXHR } from '@/mock';

// element API组件样式
import 'element-plus/es/components/message/style/css';

const pinia = createPinia();
const app = createApp(App);

mockXHR();
app.config.errorHandler = (err) => {
  console.log('err :>> ', err);
};
app.use(pinia);
app.mount('#app');
